package day10.Throw;

/**
 * @Auther:小陈的Java
 */
public class FuShuExceptionTest {
    public  static double getSalary(double money){
        if (money <0){
            throw new FuShuException("工资不能为负数");
        }
        return money;
    }

    public static void main(String[] args) {
        getSalary(-10);
    }
}
